<!-- $Id: brand_list.htm 15898 2009-05-04 07:25:41Z liuhui $ -->

{if $full_page}
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}
<!-- 品牌搜索 -->

<div class="form-div">
    <form action="javascript:search_comparison()" name="searchForm">
        <img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
        {$lang.keyword} <input type="text" name="comparison_name" size="15" />
        <input type="submit" value="{$lang.button_search}" class="button" />
    </form>
</div>

<script language="JavaScript">
    function search_comparison()
    {
        listTable.filter['comparison_name'] = Utils.trim(document.forms['searchForm'].elements['comparison_name'].value);
        listTable.filter['page'] = 1;

        listTable.loadList();
    }

</script>
        
<form method="post" action="" name="listForm">
    <!-- start comparison list -->
    <div class="list-div" id="listDiv">
        {/if}

        <table cellpadding="3" cellspacing="1">
            <tr>
                <th>产品对比标题</th>
                <th>本店产品</th>
                <th>其他品牌产品</th>
                <th>{$lang.handler}</th>
            </tr>
            {foreach from=$comparison_list item=comparison}
            <tr>
                <td class="first-cell">
                    <span onclick="javascript:listTable.edit(this, 'edit_comparison_name', {$comparison.comparison_id})">{$comparison.comparison_name|escape:html}</span>
                </td>
                <td align="center">{$comparison.a_id}</td>
                <td align="center">{$comparison.b_id}</td>
                <td align="center">
                    <a href="comparison.php?act=edit&id={$comparison.comparison_id}" title="{$lang.edit}">{$lang.edit}</a> |
                    <a href="javascript:;" onclick="listTable.remove({$comparison.comparison_id}, '{$lang.drop_confirm}')" title="{$lang.edit}">{$lang.remove}</a>
                </td>
            </tr>
            {foreachelse}
            <tr><td class="no-records" colspan="4">{$lang.no_records}</td></tr>
            {/foreach}
            <tr>
                <td align="right" nowrap="true" colspan="4">
                    {include file="page.htm"}
                </td>
            </tr>
        </table>

        {if $full_page}
        <!-- end comparison list -->
    </div>
</form>

<script type="text/javascript" language="javascript">
    <!--
    listTable.recordCount = {$record_count};
    listTable.pageCount = {$page_count};

    {foreach from=$filter item=item key=key}
    listTable.filter.{$key} = '{$item}';
    {/foreach}

    {literal}
    onload = function()
    {
        // 开始检查订单
        startCheckOrder();
    }
    {/literal}
    //-->
</script>
{include file="pagefooter.htm"}
{/if}